<template>
	<view class="page">
		<!-- search -->
		<view class=""
			style="display: flex;flex-direction: row;align-items: center;padding: 12px;background-color: #FFFFFF;justify-content: space-between;">
			<view class="" @click="popBack()">
				<text class="iconfont icon-arrow-left" style="font-size: 16px;font-weight: bold;"></text>
				<text style="font-size: 16px;">张三</text>
			</view>
			<view
				style="
				display: flex;align-items: center;
				padding: 5px 12px;border-style: solid;border-width: 1px;border-color: #007AFF;border-radius: 16px;max-width: 90px;">
				<text style="text-align: center;font-size: 14px;color: #007AFF;display: block;">推送</text>
				<text class="iconfont icon-fasong"
					style="font-size: 12px;color: #007AFF;margin-left: 5px;display: block;"></text>
			</view>
		</view>
		<!-- list -->
		<view class="" style="flex: 1;overflow-y: auto;">
			<!-- 基本信息 -->
			<view style="padding: 12px;background-color: #FFFFFF">
				<form-title :title="detailModel.baseInfo.title"></form-title>
				<form-key-value-row :keystr="key" :valuestr="detailModel.baseInfo.data[key]"
					v-for="(key,idx) in Object.keys(detailModel.baseInfo.data)" :key="idx"></form-key-value-row>
			</view>
			<!-- 详情信息 -->
			<view style="padding: 12px;background-color: #FFFFFF">
				<form-title :title="detailModel.detailInfo.title"></form-title>
				<form-key-value-row :keystr="key" :valuestr="detailModel.detailInfo.data[key]"
					v-for="(key,idx) in Object.keys(detailModel.detailInfo.data)" :key="idx"></form-key-value-row>
				<form-key-des></form-key-des>
			</view>

		</view>





	</view>
</template>

<script>
	import {
		professorRead
	} from "../../api/workbench.js"
	export default {

		data() {
			return {
				"detailModel": {
					"baseInfo": {
						"style": "00",
						"title": "基础资料",
						"data": {
							"学校编号": "1654687",
							"跟进进度": "1111",
							"负责人": "222",
							"创建人": "333",
							"创建时间": "444",
						}
					},
					"detailInfo": {
						"title": "详情",
						"data": {
							"中文名": "四川大学",
							"性质": "公立大学",
							"性质": "公立大学",
							"性质": "公立大学",
							"性质": "公立大学",
							"性质": "公立大学",
							"性质": "公立大学",
							"性质": "公立大学",
							"竞争对手描述": "竞争对手描述竞争对手描述竞争对手描述竞争对手描述竞争对手描述竞争对手描述",
							"竞争对手描述": "竞争对手描述竞争对手描述竞争对手描述竞争对手描述竞争对手描述竞争对手描述",
							"竞争对手描述": "竞争对手描述竞争对手描述竞争对手描述竞争对手描述竞争对手描述竞争对手描述",
							"竞争对手描述": "竞争对手描述竞争对手描述竞争对手描述竞争对手描述竞争对手描述竞争对手描述",
							"竞争对手描述": "竞争对手描述竞争对手描述竞争对手描述竞争对手描述竞争对手描述竞争对手描述",
						}
					},

					info: {
						"acceleratedDesc": "",
						"acceleratedYesno": "",
						"addirionalCredentialDesc": "",
						"additionalCredentialDesc": "",
						"additionalCredentialDiscipline": "",
						"additionalCredentialTitle": "",
						"addressLine2": "addressLine2达令港",
						"altEmail": "altEmail.com",
						"applicationDate": 1631462400000,
						"applyingPosition": "",
						"authonrizedSupervisorsLion": "",
						"authorizedWorkYesno": "",
						"briefIntroduction": "我是一名教授",
						"capacityDesc": "",
						"chinaExprienceDescribe": "",
						"citizenship": "citizenship党员",
						"city": "成都",
						"country": "中国",
						"coursesPreviouslyLion": "",
						"credentialHighest": "",
						"disiplineHighest": "",
						"econdAdditionalCredentialTitle": "",
						"emailAddress": "emailAddress@.com",
						"facultyGroup": "facultyGroup大组合",
						"firstName": "firstName哥",
						"highestLevelEducation": "",
						"hireDate": "2021-09-14",
						"id": "1437354011205906434",
						"idCar": "idcart123",
						"lastAvailabilityDate": 1632758400000,
						"middleInitial": "middleInitial哥",
						"name": "name教授111",
						"nonLationDesc": "",
						"otherforeignExperienceDesc": "",
						"otherforeignExperienceYesno": "",
						"phoneNumbe": "phoneNumbe123",
						"previouslyWorkYesno": "",
						"professorEmploymentBackgroud": [{
							"createBy": "admin",
							"createTime": "2021-09-21 19:55:15",
							"currentlyEmployed": "",
							"deleted": null,
							"empoyer": "",
							"empoyerLocation": "",
							"empoyerPhoneNumber": "",
							"enddateEmployment": 1631030400000,
							"id": "1440283478783483905",
							"jobResponsibilities": "",
							"jobTitle": "",
							"professorId": "1437354011205906434",
							"remark": null,
							"startdateEmployment": 1630425600000,
							"supervisorAddress": "",
							"supervisorFullname": "",
							"supervisorName": "",
							"supervisorOrganization": "",
							"supervisorOrganizationRelationship": "",
							"supervisorPhone": "",
							"updateBy": "admin",
							"updateTime": "2021-09-21 19:55:15"
						}],
						"professorPicture": "",
						"secondAdditionalCredentialDesc": "",
						"secondAdditionalCredentialTypedesc": "",
						"serviceSchool": null,
						"standing": null,
						"startingAvailabilityDate": 1630425600000,
						"stateProvince": "四川",
						"streetAddress": "streetAddresss大丰",
						"surname": "surname大",
						"teachingInternationalYesno": "",
						"zipPostalCode": "610010"
					}

				}
			}
		},
		computed: {
			list() {
				let arr = []
				arr = Object.values(this.detailModel)
				return arr;
			}
		},
		methods: {
			popBack() {
				uni.navigateBack({

				})
			},
			netProfessorRead() {
				professorRead().then(res => {

				}).catch(e => {

				})
			}
		}
	}
</script>

<style scoped>
	.page {
		flex: 1;
		display: flex;
		flex-direction: column;
		background-color: #f4f5f7;
	}
</style>
